import request from '@/utils/request'

// 查询短信列表
export function listSms(query) {
  return request({
    url: '/ecs/sms/list',
    method: 'get',
    params: query
  })
}


export function verifyCode(query) {
  return request({
    url: '/ecs/sms/verifyCode',
    method: 'get',
    params: query
  })
}



// 新增短信
export function createCode(data) {
  return request({
    url: '/ecs/sms/createCode',
    method: 'post',
    data: data
  })
}


// 删除短信
export function delSms(id) {
  return request({
    url: '/ecs/sms/' + id,
    method: 'delete'
  })
}
